<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <link type="text/css" href="__PUBLIC__/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<link href="__PUBLIC__/images/class.css" rel="stylesheet" type="text/css" />

<style type="text/css">
table{ padding:0px; margin:0px;}
th,tr,td {
	text-align: center;
	line-height: 28px;
	height: 28px;
}
th{
	background-image: url(__PUBLIC__/images/th_bg.jpg);
	background-color: #06C;
	}
table {border-collapse:collapse;}
th,td {vertical-align:middle;	border:1px dotted #DDD;	border-collapse:collapse;}
table td span{color:#999999;}
td{cursor:pointer;}
.formTextarea{background:url(__PUBLIC__/images/textareaBg.png) no-repeat;border:1px #B9C8E7 solid;font-size:12px;line-height:150%;color:#333;padding:5px;}
</style>
<script src="__PUBLIC__/libs/js/jquery.js"type="text/javascript"></script>

  <script type="text/javascript">
 /* $(document).ready(function(){
    $(".data_list tr").dblclick(function() {
     var id=$(this).attr('id');   
	 top.Dialog.open({URL:"__ROOT__/index.php/Payments/editshow/id/"+id,Title:"财务记录修改编辑"});
    });
})
  */
  
        /* 当鼠标移到表格上是，当前一行背景变色 */
      $(document).ready(function(){
            $(".data_list tr td").mouseover(function(){
                $(this).parent().find("td").css("background-color","#D6EDFF");
            });
      })
      /* 当鼠标在表格上移动时，离开的那一行背景恢复 */
      $(document).ready(function(){ 
            $(".data_list tr td").mouseout(function(){
                var bgc = $(this).parent().attr("bg");
                $(this).parent().find("td").css("background-color",bgc);
            });
      })
      
      $(document).ready(function(){ 
            var color="#F8F8F8"
            $(".data_list tr:odd td").css("background-color",color);  //改变偶数行背景色
            /* 把背景色保存到属性中 */
            $(".data_list tr:odd").attr("bg",color);
            $(".data_list tr:even").attr("bg","#fff");
      })
      </script>
<script type="text/javascript">
function check(fr)
{
  if(fr.mark.value=="")
  {
     top.Dialog.alert("话术内容不能为空！");
	 fr.mark.focus();
	 return false
  }
  return true
}

window.onload = function(){
document.getElementById("mark").focus();
}
</script>
</head>

<body>
<DIV class="infoBox">
    <form id="form1" onSubmit="return check(this)" name="form1" method="post" action="__APP__/Huashu/editsave/id/{$id}">
        <TABLE width="100%" border=0 align="left" cellPadding=0 cellSpacing=0>
            <TBODY>
            <td colspan="2" align="center" class="pages" bgcolor="#FFFFFF">
                <div class="pages">
                    <h2>营销话术修改</h2></div>
            </td>
            </tr>
            <TR>
                <TD class=infoBoxTd width=68>话术内容：</TD>
                <TD width="446">
                    <textarea name="mark" rows="2" cols="20" id="mark"
                              class="formTextarea" style="height:100px;width:700px; ">{$mark}</textarea></TD>
            </TR>
            <TR>
                <TD class=infoBoxTd>&nbsp;</TD>
                <TD>
                    <input class="buttons" type="submit" value="保存数据"/></TD>
            </TR>
            </TBODY>
        </TABLE>
    </FORM>
</DIV>
</body>
</html>
